﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

// std headers
#include <cstdint>

// qt headers
#include <QVariant>

// gdc headers

// gcmp headers

// custom headers


namespace gmepgcs
{
    enum Permission : int32_t
    {
        UNKNOWN     = 0x00000000, ///< 未知
        READ        = 0x00000001, ///< 读，代表可读取相关资源
        WRITE       = 0x00000002, ///< 写，代表可往数据库中写入相关资源
        SOFTWRITE   = 0x00000004  ///< 软写，代表可修改相关资源但最终不可写入数据库
    };

}

#define PERMISSION_PROPERTY_NAME "PERMISSION"